home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Window / c / GetInfo3 < prev    next >
Text File  |  1995-06-21  |  1KB  |  36 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Window.GetInfo.c
  12.     Author:  Copyright © 1992 Jason Williams, Cy Booker
  13.     Version: 1.01 (26 Nov 1994)
  14.     Purpose: High-level window management functions: Get Window info
  15.     Mods:    1.01 (26 Nov 1994) Jason Williams
  16.              1.02 (05 Mar 1995) Cy Booker
  17.                                 now returns an (os_error *)
  18. */
  19.  
  20. #include "DeskLib:Window.h"
  21. #include "DeskLib:WimpSWIs.h"
  22.  
  23.  
  24. extern os_error *Window_GetInfo3(window_handle window, window_info *result)
  25. /* Returns just the window part of the window_info block (strips icon defn.s)
  26.  * This is a specific RISC OS 3 only call which uses a new feature of the
  27.  * SWI itself to strip the icon definitions from the returned data. THis
  28.  * will crash your program if used under RISC OS 2.
  29.  * If you wish to provide RO2 compatability, you must call
  30.  * Window_GetInfo() rather than Window_GetInfo3().
  31.  */
  32. {
  33.     result->window = window;
  34.     return Wimp_GetWindowInfo((window_info *) (((char *) result) + 1));
  35. }
  36.